#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<numeric>
using namespace std;

class Solution {
public:
    double findMaxAverage(vector<int>& nums, int k) {
        int left=0;
        int right=0;
        double result = double(INT16_MIN);
        double sum = 0;
        while(right<nums.size()){
            if(right<k){
                sum += nums[right++];
            }
            else{
                result = max(result,sum/k);
                sum -= nums[left++];
                sum += nums[right++];
            }
            
        }
        result = max(result,sum/k);
        return result;
    }
    
};


int main(){
    Solution S;
    vector<int> nums = {1};
    cout<<S.findMaxAverage(nums,1)<<endl;
}